<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
<%@include  file="/WEB-INF/jsp/loginFormModal.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
 <head>  
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>电影商城</title>
  <!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap/css/default.css">

<!-- <link rel="stylesheet" href="${pageContext.request.contextPath}/css/carousel.css" > -->
 <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" >

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath}/js/jquery-1.11.3.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script	src="${pageContext.request.contextPath}/css/bootstrap/js/bootstrap.min.js"></script>
<!-- <script src="${pageContext.request.contextPath}/js/common.js"></script> -->

 </head>
 <body>
<script type="text/javascript">
$(function(){ 

        var url=window.location.pathname;
	       $("#"+url).addClass('active').siblings().removeClass('active'); 
alert(url);
	});
//function selectMenu(targeturl){
//	alert(targeturl);
//	 $("#"+targeturl).addClass('active').siblings().removeClass('active');
	//var nowurl=window.location.pathname;
	//if(targeturl=="index"){
	//	$("#index").addClass("active");
	//}else if(targeturl=="saleGoods"){
	//	$("#saleGoods").addClass("active");
	//}else if(targeturl=="newGoods"){
	//	$("#newGoods").addClass("active");
	//}
	
//}
</script>
 <div class="container">

	<div class="row clearfix">
		<div class="col-md-12 ">

 			<ol class="breadcrumb text-right" id="info">
 				<li>
					<a href="${pageContext.request.contextPath }/index.action">
					<i class=""></i>进入首页
					</a>
				</li>
				<c:if test="${sessionScope['_LOGIN_USER_']==null}">
					<li id="li1"><span>游客您好，欢迎来到电影商城！</span>
					<a href="#loginFormModal" data-toggle="modal">[登录]</a>&nbsp;<!--  <a href="#regFormModal" data-toggle="modal">[新用户注册]</a></li>
					<li><a href="#" onclick="showCart('${pageContext.request.contextPath}','${sessionScope.goodslist}')">购物车 <span class="badge" id="cartBadge">${fn:length(sessionScope.goodslist)}</span></a></li>
						-->
						<li>
				<!--  <a href="${pageContext.request.contextPath }/gr.action">
					<i class=""></i>个人中心
					</a>
					-->	
				</li>
						<li>
					<a href="${pageContext.request.contextPath }/login.action">
					<i class=""></i>后台管理
					</a>
				</li>
				

				</c:if>
				<c:if test="${sessionScope['_LOGIN_USER_']!=null}">
					<li id="li1"><span>${sessionScope['_LOGIN_USER_'].userName } 您好，欢迎来到电影商城！</span>										
					<li><a href="#" onclick="showCart()">购物车 <span class="badge" id="cartBadge">${fn:length(sessionScope.goodslist)}</span></a></li>
					
				<!-- <li><a href="${pageContext.request.contextPath}/usercenter/index">个人中心</a></li> -->	
					<li><a href="#" onclick="logout('${pageContext.request.contextPath}')">退出登录</a></li>
				</c:if>  

			 </ol>
			